<?php

class Core_Paginator
{
    public static function get($total, $page)
    {
        $paginator = new Zend_Paginator(new Zend_Paginator_Adapter_Null($total));
        Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');           
        $paginator->setCurrentPageNumber($page);
        $paginator->setItemCountPerPage(10);               
        
        return $paginator;
    }
}